package qs.ipeControls
{
	import mx.controls.Label;
	import mx.controls.NumericStepper;
	
	import qs.ipeControls.classes.IPEBase;
[Event(name="change", type="mx.events.NumericStepperEvent")]
public class IPENumericStepper extends IPEBase
{
	public function IPENumericStepper():void
	{
		super();
		nonEditableControl = new Label();
		editableControl = new NumericStepper();
		facadeEvents(editableControl,"change");
	}
	
	override protected function commitEditedValue():void
	{
		Label(nonEditableControl).text = NumericStepper(editableControl).value.toString();
	}
	
	private function get numericStepper():NumericStepper { return NumericStepper(this.editableControl); }

	public function set value(value:Number):void
	{
		NumericStepper(editableControl).value = value;
		Label(nonEditableControl).text = value.toString();
	}	
	[Bindable("change")]	
	public function get value():Number { 
	return NumericStepper(editableControl).value }

public function set maximum(value:Number):void{
	this.numericStepper.maximum = value;
	
}


}

}